package com.maxie.duck.demo.entity.impl;

import com.maxie.duck.demo.behaviver.impl.FastFlyable;
import com.maxie.duck.demo.behaviver.impl.SlowFlyable;
import com.maxie.duck.demo.behaviver.impl.SoundQucakable;
import com.maxie.duck.demo.behaviver.impl.SpecificQucakable;
import com.maxie.duck.demo.entity.Duck;

public class HumanDuck extends Duck {

    public HumanDuck() {
        flyable = new FastFlyable();
        qucakable = new SpecificQucakable();
    }
    @Override
    public void display() {
        System.out.println("我是人造超人鸭，我飞的快，八嘎八嘎的叫");
    }


}
